package com.jmp.api.admin.util;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * @author cjr
 */
public class LabelUtil {

    public static String getLiveStatus(Integer status) {
        if (status == 0) {
            return "https://file.hongmushichang.com/0/zhibodating/yg.png";
        } else if (status == 1) {
            return "https://file.hongmushichang.com/0/zhibodating/zbz.png";
        } else if (status == 2) {
            return "https://file.hongmushichang.com/0/zhibodating/hf.png";
        }
        return null;
    }

    public static List<String> getLabels(boolean hasVr, boolean hasAr, boolean hasVideo) {
        List<String> labels = Lists.newArrayList();
        if (hasVr) {
            labels.add("https://file.hongmushichang.com/0/ipad/4.png");
        }
        if (hasAr) {
            labels.add("https://file.hongmushichang.com/0/ipad/2.png");
        }
        if (hasVideo) {
            labels.add("https://file.hongmushichang.com/0/ipad/3.png");
        }
        return labels;
    }

    public static List<String> getLabels(boolean hasVr, boolean hasAr, boolean hasVideo, boolean hasZkgx) {
        List<String> labels = getLabels(hasVr, hasAr, hasVideo);
        if (hasZkgx) {
            labels.add("https://file.hongmushichang.com/0/ipad/7.png");
        }
        return labels;
    }
}
